package com.dominator.utils.api;

/**
 * 响应json数据用的公共类
 * 
 * @author Administrator
 * 
 */
public class ApiMessage {
	String code;
	String message;
	String data;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public ApiMessage() {
	}

	public ApiMessage(String _code, String _message) {
		this.code = _code;
		this.message = _message;
	}

	public ApiMessage(String _code, String _message, String _data) {
		this.code = _code;
		this.message = _message;
		this.data = _data;
	}

	@Override
	public String toString() {
		return "ApiMessage{" +
				"code='" + code + '\'' +
				", message='" + message + '\'' +
				", data='" + data + '\'' +
				'}';
	}
/*
	 * Map<String, Object> data = new HashMap<String, Object>();
	 * 
	 * public ApiMessage() { }
	 * 
	 * public ApiMessage(String _code, String _message) { this.code = _code;
	 * this.message = _message; }
	 * 
	 * public ApiMessage(String _code, String _message, Map<String, Object>
	 * _data) { this.code = _code; this.message = _message; this.data = _data; }
	 * 
	 * public String getCode() { return code; }
	 * 
	 * public void setCode(String code) { this.code = code; }
	 * 
	 * public String getMessage() { return message; }
	 * 
	 * public void setMessage(String message) { this.message = message; }
	 * 
	 * public Map<String, Object> getData() { return data; }
	 * 
	 * public void setData(Map<String, Object> data) { this.data = data; }
	 * 
	 * public void putData(String key, Object value) { this.data.put(key,
	 * value); }
	 */
}
